I have been trying to search on google but i couldnt find anything that can help so i thought i should ask here. Is there a way to block a specific url from anyone to access? Example url. Www.domain.com/index/example.rss If there is a way then pls help me out. Thanks.
If you remove that example.rss files, then nobody can access it. If removing that files is not possible, I guess it is possible with some twiddling with .htaccess or web server setup to prevent web server from showing that URL.
Solution depends on version of webserver. Assuming you are using apache, you can use htaccess files (or directly in webserver config). Different solution for nginx. For apache version <2.2 and >2.4 see https://htaccessbook.com/access-control-apache-2-4/ Basically: Code: ## Apache 2.2 <Files example.rss> order allow,deny deny from 123.123.123.123 </Files> ## Apache 2.4 <Files example.rss> Require all granted Require not ip 123.123.123.123 </Files> If you want to block it for everyone, replace IP with "all" Code: ##Apache 2.2 # Block all files starting with ".ht" <FilesMatch "^\.ht"> Order allow,deny Deny from all satisfy all </FilesMatch> ## Apache 2.4 # Block all files starting with ".ht" <Files ".ht*"> Require all denied </Files>